home *** CD-ROM | disk | FTP | other *** search
/ Deutsche Edition 1 / Deutsche Edition 1.iso / time / time_81-90 / time_82 / code / code.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-04  |  1.1 KB  |  65 lines

  1.  
  2. /*                      Paßword-Check by E. Dumfahrt                 */
  3.  
  4. /*                            THE BYTEHUNTER !                       */
  5.  
  6. /*                            Coded in 1992                          */
  7. #include <exec/types.h>
  8. #include <intuition/intuition.h>
  9. #include <graphics/gfx.h>
  10.  
  11.  
  12. struct IntuitionBase *IntuitionBase;
  13. struct GfxBase *GfxBase;
  14. struct Window *Window;
  15.  
  16. #include <libraries/dos.h>
  17. #include "dh0:stdwindow.h"
  18.  
  19.  
  20.  
  21.  
  22. main()
  23.   
  24.  
  25.     char s[40];
  26.     char c[20];
  27.  
  28. open_libs();
  29.     goto Beginn;
  30. Falsch:
  31.  
  32.     {
  33.       
  34.  
  35.   Window = (struct Window *)
  36.            open_window(0,0,640,256,NULL, BORDERLESS, NULL, NULL);
  37.  
  38.            if (Window == NULL) exit (FALSE);
  39.  
  40.   DisplayAlert(DEADEND_ALERT,
  41.   "\3\0\45        Wrong Password !   Rat !!! \0c\0\0\75  Press Mousebutton ! \0c\1\0\75                 GURU-Eddie ! Hähä !\0\0",70);
  42.   #asm
  43.     move $0,34
  44.   #endasm
  45.  
  46.     }
  47.  Beginn:
  48.      { 
  49.       puts(" ");
  50.       puts(" ");
  51.       puts("PASSWORD-CHECK BY E. DUMFAHRT");
  52.       puts(" ");
  53.       puts(" ");
  54.       puts("PassWord:");
  55.       gets(c);
  56.       while( strcmp(c,"Ed!") )
  57.              goto Falsch;
  58.            
  59.       }
  60. }
  61.  
  62.  
  63.  
  64.